#!/bin/bash

INSTALL_TOOLS=sudo apt install -y

function install_base() {
	sudo apt install -y variety
	sudo apt install -y gcc g++ vim git docker.io curl minicom adb
	sudo apt install -y make texinfo u-boot-tools mtd-utils
}

function install_dev() {
	sudo apt install -y pip3
}

function install_gl() {
    sudo apt install -y install libgl1-mesa-dev libglu1-mesa-dev
	sudo apt install -y libglew-dev freeglut3-dev libglfw3-dev
	$INSTALL_TOOLS libjpeg9-dev
}

function install_for_r_xml() {
    $INSTALL_TOOLS install libxml2-dev
}

install_base
install_dev
install_gl
